package com.example.demo.model.entity.relation;

import com.example.demo.model.enums.ProjectRoleTypeEnum;
import com.example.demo.model.enums.ProjectTypeEnum;
import java.time.LocalDateTime;

/**
 * 用户-项目关系实体类
 */
public class UserProjectRelation {

    private Long id;
    private Long userId;
    private Long projectId;
    private ProjectTypeEnum projectType;
    private ProjectRoleTypeEnum roleType;
    private LocalDateTime createTime;

    // Getter 和 Setter 方法
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public Long getUserId() { return userId; }
    public void setUserId(Long userId) { this.userId = userId; }

    public Long getProjectId() { return projectId; }
    public void setProjectId(Long projectId) { this.projectId = projectId; }

    public ProjectTypeEnum getProjectType() { return projectType; }
    public void setProjectType(ProjectTypeEnum projectType) { this.projectType = projectType; }

    public ProjectRoleTypeEnum getRoleType() { return roleType; }
    public void setRoleType(ProjectRoleTypeEnum roleType) { this.roleType = roleType; }

    public LocalDateTime getCreateTime() { return createTime; }
    public void setCreateTime(LocalDateTime createTime) { this.createTime = createTime; }
}